package com.chenjian.designpattern.strategy;

import com.chenjian.designpattern.strategy.impl.Num01Discount;
import com.chenjian.designpattern.strategy.impl.Num02Discount;

/**
 * 策略模式测试
 *
 * @author TC2952
 */
public class StrategyTest {
    public static void main(String[] args) {
        Does ceshi = new Does("ceshi01", 100L, new Num01Discount());
        System.out.println(ceshi.doS());
        Does ceshi02 = new Does("ceshi02", 200L, new Num02Discount());
        double c2 = ceshi02.doS();
        System.out.println(c2);
    }
}
